/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __QS_ProjectDialog_H__
#define __QS_ProjectDialog_H__

#include "Prerequisites.h"
#include "UIWidgets.h"

namespace QSThink
{
	
	class ProjectDialog : 
		public QDialog
	{
		Q_OBJECT
	public:
		ProjectDialog(QWidget *parent = 0);
		~ProjectDialog();
		void selectCreateTab();
		void selectOpenTab();

		
	public slots:
		void accept();
		void reject();//when close dialog will evoke this
		void createFileDialog();
		void createProject();
		void loadProject();
		void changeTab(int index);
	private:
		Ui::ProjectDialogUI* _ui;
		QStringListModel* _projectListModel;
	};
}

#endif
